﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PolePositionMobileUtilityLogic;
using PolePositionMobileUtilityGeneral;

namespace PolePositionMobileUtilityEntity
{
    public class EUtilityInspectionResult
    {
        #region Fields
        private int m_Id;
        private EUtilityInspection m_Inspection;
        private EInspectionType m_InspectionType;
        private EResultType m_ResultType;
        private string m_LastInspection;
        private string m_Comments;
        private List<ENote> m_notes;
        private bool m_IsElectrical;

        
        #endregion

        #region Properties
        public int Id
        {
            get
            {
                return m_Id;
            }
            set
            {
                m_Id = value;
            }
        }
        public EUtilityInspection Inspection
        {
            get
            {
                return m_Inspection;
            }
            set
            {
                if (m_Inspection == value)
                    return;
                m_Inspection = value;
            }
        }
        public EInspectionType InspectionType
        {
            get
            {
                return m_InspectionType;
            }
            set
            {
                if (m_InspectionType == value)
                    return;
                m_InspectionType = value;
            }
        }
        public EResultType ResultType
        {
            get
            {
                return m_ResultType;
            }
            set
            {
                m_ResultType = value;
            }
        }
        public string LastInspection
        {
            get
            {
                return m_LastInspection;
            }
            set
            {
                m_LastInspection = value;
            }
        }
        public string Comments
        {
            get
            {
                return m_Comments;
            }
            set
            {
                m_Comments = value;
            }
        }
        public List<ENote> Notes
        {
            get
            {
                return m_notes;
            }
            set
            {
                m_notes = value;
            }
        }
        public bool IsElectrical
        {
            get { return m_IsElectrical; }
            set { m_IsElectrical = value; }
        }

        #endregion

        public EUtilityInspectionResult()
        {
            m_Comments = string.Empty;
            m_Id = Int32.MinValue;
            m_Inspection = new EUtilityInspection();
            m_InspectionType = new EInspectionType();
            m_LastInspection = string.Empty;
            m_ResultType = new EResultType();
            m_notes = new List<ENote>();
            m_IsElectrical = false;
        
        }

    }
}
